import request from '@/utils/request'

// 公域用户数统计信息
// export function userCountInfo({businessId, data}) {
//   return request({
//     url: `/business_admin/pubDomainUser/userCountInfo`,
//     method: 'post',
//     data: data,
//     headers: {businessId}
//   })
// }

// 门店列表
export function getPubShopList(data) {
  // if (!data.shopId && store.getters.userShopId) {
  // 	data.shopId = store.getters.userShopId
  // }
  return request({
    url: '/business_admin/pubDomainShop/list',
    method: 'post',
    data: data
  })
}
// 门店编辑详情
export function getPubDomainShop(shopId) {
  return request({
    url:
      'business_admin/pubDomainShop/getPubDomainShopById?pubDomainShopId=' +
      shopId,
    method: 'get'
  })
}
// 更新门店
export function updatePubShop(data) {
  return request({
    url: '/business_admin/pubDomainShop/update',
    method: 'post',
    data: data
  })
}

// 获取商圈分类
export function getBusinessClassificationList(data) {
  return request({
    url: '/business_admin/classify/list',
    method: 'post',
    data: data
  })
}
// 新增商圈分类
export function addBusinessClassification(data) {
  return request({
    url: '/business_admin/classify/add',
    method: 'post',
    data: data
  })
}
// 编辑商圈分类
export function updateBusinessClassification(data) {
  return request({
    url: '/business_admin/classify/update',
    method: 'post',
    data: data
  })
}

// 删除
export function deleteBusinessClassification(data) {
  return request({
    url: '/business_admin/classify/delete',
    method: 'post',
    data: data
  })
}

// 获取商圈分类
export function getPubIndustryList(data) {
  return request({
    url: '/business_admin/classify/getPubIndustryList',
    method: 'post',
    data: data
  })
}
// 下拉框获取公域门店分类GET请求：
export function getPubClassifyList(data) {
  return request({
    url: 'business_admin/classify/getPubClassifyList',
    method: 'post',
    data: data
  })
}
// 下拉框获取公域门店类型GET请求
export function getPubDomainBusinessIndustryList(data) {
  return request({
    url: 'business_admin/pubDomainBusiness/getIndustry',
    method: 'get',
    data: data
  })
}
